package demo1;

public class Dog extends Animal{

    static {
        System.out.println("Dog 静态块");
    }

    {
        System.out.println("Dog 实例块");
    }

    public void eat(char a){
        System.out.println(this.name + " Dog正在吃饭");
    }

    public void textA(){
        System.out.println("Dog  textA");
    }


    public Dog(String name, int age, String className) {
        super(name, age, className);
        System.out.println("dog 初始化");
    }
}
